import React from 'react'
import Link from 'next/link'

export default function InterceptLayout({
  children,
  modal,
}: Readonly<{
  children: React.ReactNode
  modal: React.ReactNode
}>) {
  return (
    <div>
      <div className="absolute right-0 left-0 top-1 flex justify-center items-center gap-6 text-blue-300">
        <Link href={'/'}>Home</Link>
      </div>
      {children}
      {modal}
    </div>
  )
}
